<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><?= $title ?></title>
        <link href="<?= base_url() ?>style/style.css" rel="stylesheet" type="text/css" media="screen" />
        <link type="text/css" href="<?= base_url() ?>css/blitzer/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="<?= base_url() ?>js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="<?= base_url() ?>js/jquery-ui-1.8.13.custom.min.js"></script>

        <script>
            $(function() {
                $( "#tabs" ).tabs();
            });

            function loaded(){
                var $tabs = $('#tabs').tabs();
                $tabs.tabs('select', 2);
            }

            function myFunc(){
                var $tabs = $('#tabs').tabs();
                var selected = $tabs.tabs('option', 'selected'); // => 0
                alert("Selected tab is "+selected);
            }
            function show3() {
                $('#welcome').show("slow");
            }
            function hide3() {
                $('#welcome').hide('slow');
            }
        </script>
    </head>
    <body>
        <div id="wrapper">
            <div id="logo">
            </div>
            <hr />
            <!-- end #logo -->
            <div id="header">
                <div id="menu">
                    <ul>
                        <?php if (isset($user_id) && ($user_level == 'admin' || $user_level == 'limit')) {
                        ?>
                            <li> <a href='grid_applicants.php'  class="first">Applicants</a></li>
                            <li> <a href='grid_innovations.php'>Innovations</a></li>
                        <?php
                        }
                        if (isset($user_id) && $user_level === 'admin') {
                        ?>
                            <li>  <a href='departments.php'>Departments</a></li>
                            <li>  <a href='countries.php'>Countries</a></li>
                            <li>   <a href='admin_signup.php'>Create Admin</a></li>

                        <?php } else {
                        ?>
                            <li><?= anchor("welcome/index", "Home") ?></li>
                            <li><a href="contact.php">Contact us</a></li>
                        <?php
                        }
                        //   if (isset($user_id)) {
                        //   if ($user_level == 'user') {
                        ?>
                        <li><a href="view_applicant.php">My Profile</a></li>
                        <li><?= anchor("innovations/index", "Innovations") ?></li>
                        <?php
                        // }
                        ?>
                        <li><a href="logout.php">Logout</a></li>
                        <?php
                        //   } else {
                        ?>
                        <li><a href="user_signup.php">Register</a></li>
                        <li><a href="user_login.php">Login</a></li>
                        <li><a href="admin.php">Admin</a></li>
                        <?php
                        //      }
                        ?>
                    </ul>
                </div>
            </div>
            <!-- end #header -->
            <!-- end #header-wrapper -->
            <div id="page">
                <div id="page-bgtop">
                    <div id="content">